analysis of algorithm in data structure